﻿using System;
namespace ProjectCloth.Entity
{
    public class SaleOrder
    {
        public int Id { set; get; }
        /// <summary>
        /// 销售单号
        /// </summary>
        public string OrderNo { get; set; }
        /// <summary>
        /// 出货仓库
        /// </summary>
        public string OutStore { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Name { get; set; }
        ///// <summary>
        ///// 客户id
        ///// </summary>
        //public int CustomerId { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string CompanyName { get; set; } = "";
        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; } = "";
        /// <summary>
        /// 联系人
        /// </summary>
        public string Liaison { get; set; } = "";
        /// <summary>
        /// 创建人id
        /// </summary>
        public int CreatorId { get; set; }
        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string CreatorName { get; set; }
        /// <summary>
        /// 录单人ID
        /// </summary>
        public int MakerId { get; set; }
        /// <summary>
        /// 录单人
        /// </summary>
        public string MakerName { get; set; }
        /// <summary>
        /// 录单日期
        /// </summary>
        public DateTime RecordDate { get; set; }
        /// <summary>
        /// 收款日期
        /// </summary>
        public DateTime InMoneyDate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 摘要
        /// </summary>
        public string Summary { get; set; }
        /// <summary>
        /// 附加说明
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 整单折扣
        /// </summary>
        public decimal DisClose { get; set; } = -1;
        /// <summary>
        /// 单据类型
        /// </summary>
        public int OrderType { get; set; }
        /// <summary>
        /// 收款账户
        /// </summary>
        public int? InMoneyAccountId { get; set; }
        /// <summary>
        /// 收款金额
        /// </summary>
        public decimal InMoneyAmount { get; set; }
        /// <summary>
        /// 支付时间
        /// </summary>
        public DateTime? PayTime { get; set; }
        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal Preferential { get; set; } = 0;
        /// <summary>
        /// 优惠后金额
        /// </summary>
        public decimal FinalMoney { get; set; }
        /// <summary>
        /// 销售单状态(收款状态)
        /// </summary>
        public int OrderStatus { get; set; }
        /// <summary>
        /// 整单状态(进货流程状态)
        /// </summary>
        public int Status { get; set; } = 0;

    }
}